package com.lw.order.client;

import com.lw.commonutil.vo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;


@FeignClient("service-edu")
@Component
public interface CourseFeignClient {
    //rpc根据课程id查找课程信息
    @PostMapping("/api/edu/course/inner/getCourseInfo/{courseId}")
    public CourseVo getCourse(@PathVariable("courseId") String courseId);
}
